﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Models.Models
{
    /// <summary>
    /// 记录表
    /// </summary>
    public class WF_Record
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 流程实体编号
        /// </summary>
        public int WFId { get; set; }
        /// <summary>
        /// 业务申请编号
        /// </summary>
        public int ApplicationId { get; set; }
        public int ApplicationTypeId { get; set; }
        /// <summary>
        /// 节点编号
        /// </summary>
        public int NodeCode { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string NodeName { get; set; }
        /// <summary>
        /// 操作者编号
        /// </summary>
        public int OperatorId { get; set; }
        /// <summary>
        /// 操作者
        /// </summary>
        public string Operator { get; set; }
        /// <summary>
        /// 审批意见
        /// </summary>
        public string ApprovalOpinions { get; set; }
        /// <summary>
        /// 审批状态1，通过，0不通过
        /// </summary>
        public int ApprovalStatus { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; } = 1;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
